﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<FinalOnlineLibrary.Models.NavigationModel>" %>

<h3>Navigation</h3>
<ul>
    <% foreach (var item in Model.ResTypeMenu)
    { %>
        <li>
	        <img src="../../Content/images/pic<%: item.ResTypeId %>.gif" alt="" />
            <div class="extra-wrap">
                <span><%: item.ResTypeName %></span>
                  
                <%: Html.ActionLink(item.ResTypeName, "DefaultBooksPage", "Books", new { resType = item.ResTypeId, page = 1 }, null)%>              
            </div>
		</li>
    <%} %>
</ul>